package com.chao.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2021-06-16 15:36
 */
@RestController
public class NacosController {

    @Value("${server.port}")
    private int serverPort;

    @GetMapping(value = "/provider/get/{id}")
    public String get(@PathVariable("id") Long id) {
        return "Hello Nacos Discovery " + serverPort + "id:" + id;
    }
}
